<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="jquery-easyui-1.5.2/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="jquery-easyui-1.5.2/themes/icon.css">
		<link rel="stylesheet" type="text/css" href="jquery-easyui-1.5.2/demo.css">
		<link rel="stylesheet" type="text/css" href="style/syExtIcon.css">

		<script type="text/javascript" src="jquery-easyui-1.5.2/jquery.min.js"></script>
		<script type="text/javascript" src="jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
		<!--<script type="text/javascript" src="js/syExtEasyUI.js"></script>-->
		<script type="text/javascript" src="js/syExtHighcharts.js"></script>
		<script type="text/javascript" src="js/syExtJavascript.js"></script>
		<script type="text/javascript" src="js/syExtJquery.js"></script>
		<script type="text/javascript">
//			$(function(){
//				var url=encodeURI("http://qr.topscan.com/api.php?text=https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxb23937a29ecb198e&redirect_uri=http%3A%2F%2Fwww.lightcar.cn%2Fipms%2Fweixin_zr%2FweixinAction%21getOpenStep2.action%3FchannelId%3D&response_type=code&scope=snsapi_base&state=123&connect_redirect=1#wechat_redirect");
//				sy.info(url.replace("&","%26"))
//				$("#img").attr("src",url);
//			});
				$(function(){
					document.onkeydown=function(e){    //对整个页面文档监听  
		            	var keyNum=window.event ? e.keyCode :e.which;       //获取被按下的键值  
		            	console.log(e.keyCode+"=keyNum=="+keyNum)
		           }
					var map=[];
					map.push({key:"yue", value:"粤"});
					map.push({key:"ji", value:"冀"});
					map.push({key:"yu", value:"豫"});
					map.push({key:"yun", value:"云"});
					map.push({key:"liao", value:"辽"});
					map.push({key:"hei", value:"黑"});
					map.push({key:"xiang", value:"湘"});
					map.push({key:"wan", value:"皖"});
					map.push({key:"lu", value:"鲁"});
					map.push({key:"xin", value:"新"});
					map.push({key:"su", value:"苏"});
					map.push({key:"zhe", value:"浙"});
					map.push({key:"gan", value:"赣"});
					map.push({key:"e", value:"鄂"});
					map.push({key:"gui", value:"桂"});
					map.push({key:"gan1", value:"甘"});
					map.push({key:"jin", value:"晋"});
					map.push({key:"meng", value:"蒙"});
					map.push({key:"shan", value:"陕"});
					map.push({key:"ji", value:"吉"});
					map.push({key:"min", value:"闽"});
					map.push({key:"gui1", value:"贵"});
					map.push({key:"chuan", value:"川"});
					map.push({key:"qing", value:"青"});
					map.push({key:"zang", value:"藏"});
					map.push({key:"qiong", value:"琼"});
					map.push({key:"ning", value:"宁"});
					map.push({key:"yu", value:"渝"});
					map.push({key:"jing", value:"京"});
					map.push({key:"jin2", value:"津"});
					map.push({key:"hu", value:"沪"});
					
					$("#pageSize").combobox({
						hasDownArrow:false,
						valueField:"value",
						textField:"value",
						onChange:function(newValue,oldValue){
							var ds=[];
							for (var i in map) {
								var d=map[i];
								if(d.key.indexOf(newValue)==0||d.value.indexOf(newValue)==0){
									ds.push(d);
								}
							}
							if(ds.length>0){
								$("#pageSize").combobox("loadData",ds)
								$("#pageSize").combobox("showPanel")
							}else{
								$("#pageSize").combobox("hidePanel")
							}
						}
					});
					$("#pageSize").combobox("setValue","")
				});
				function test(){
					var value=$("#pageSize").combobox("getValue");
				}
				
		</script>
	</head>

	<body>
		<!--<div style="width: 730px;margin: auto;">
			<img id="img" src="http://qr.topscan.com/api.php?text=https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxb23937a29ecb198e&redirect_uri=http%253A%252F%252Fwww.lightcar.cn%252Fipms%252Fweixin_zr%252FweixinAction%2521getOpenStep2.action%253FchannelId%253D&response_type=code&scope=snsapi_base&state=123&connect_redirect=1#wechat_redirect"/>
		</div>-->
		<input id="pageSize" name="pageSize" class="easyui-combobox" value="" style="width: 100px;">
		</input>
		<button onclick="test();">测试</button>
	</body>

</html>